package com.caiyj.observe.demo3;

import java.util.Observable;

/**
 * @Description:
 * @author:CAIYJ
 * @Date:2018/12/14 20:51
 */
public class ConcreteSubject extends Observable {

    private String mess = "";

    public String getMess() {
        return mess;
    }

    public void setMess(String mess) {
        if (!this.mess.equals(mess)) {
            this.mess = mess;
            setChanged();
        }
        notifyObservers();
    }

}
